<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<form action="" id="form1">
    <table width="690px" height="350px" border="0"
           cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
        <tr>
            <td align="left" bgcolor="#E2F7FE">
                <table width="99%" border="0" cellspacing="1" cellpadding="3">
                    <tr>
                        <td width="20%" align="center">
                            <strong>收件人</strong>
                        </td>
                        <td width="20%" align="left">
                            <input name="sendId" type="hidden" value="${userIdLogin.id}">
                            <select name="receiveId" style="width: 172px; height: 30px" id="receive" ></select>
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td width="20%" align="center">
                            <strong>标题:</strong>
                        </td>
                        <td width="20%" align="left">
                            <input style="height: 20px" type="text" name="title" />
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td width="20%" align="center"><strong>内容:</strong>
                        </td>
                        <td width="20%" align="left">
                            <textarea rows="7" cols="70" name="content"></textarea>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript">

    //显示所有用户下拉菜单
    var getList = function() {
        $('#receive').combobox({
            dataType : "json",
            url:'${request.contextPath}/sysuser/getAllUser',
            valueField:'id',
            textField:'realname',
            onLoadSuccess : function() {
                $("#receive").combobox("setValue","请选择");
            }
        });
    }
    getList();
</script>
</body>
</html>